package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 新闻列表对象 news
 *
 * @author 吴倩芸
 * @date 2023-03-04
 */
@Data
@TableName("news")
public class News extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 公告的标题
     */
    @Excel(name = "公告的标题")
    @TableField(value = "title")
    private String title;

    /**
     * 公告的显示顺序
     */
    @Excel(name = "公告的显示顺序")
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 公告的内容
     */
    @Excel(name = "公告的内容")
    @TableField(value = "context")
    private String context;


}
